import request from '../../index';

// 01-获取验证码
export function getCodeHttp(data) {
  return request.post(`/mldjourneyapp/user/verify?phone=${data.phone}`);
}
// 02-登录
export function loginHttp(data) {
  return request.post(`/mldjourneyapp/user/login?phone=${data.phone}&code=${data.code}`);
}
// 03-退出登录
export function loginOutHttp(data) {
  return request.post(`/mldjourneyapp/user/logout`);
}
// 04-图片上传
export function imgLoadHttp(data) {
  return request.post(`/mldjourneyapp/upload/upload`, data);
}
// 05-充值列表
export function rechargeListHttp(data) {
  return request.post(`/mldjourneyapp/recharge/list`);
}
// 06-获取用户信息
export function userInfoHttp(data) {
  return request.post(`/mldjourneyapp/user/info`);
}
// 07-模型列表
export function imgModelListHttp(data) {
  return request.post(`/mldjourneyapp/img/imgModel`);
}

// 08-风格选择列表
export function styleSizeListHttp(data) {
  return request.post(`/mldjourneyapp/img/imgHome`);
}
// 09-生成图片
export function nowCreatHttp(data) {
  return request.post(`/mldjourneyapp/img/createImg`, data);
}
// 10-我的列表
export function getMyListHttp(data) {
  return request.post(`/mldjourneyapp/img/myList?current=${data.current}&size=${data.size}`);
}
// 11-推荐列表
export function getRecommendListHttp(data) {
  return request.post(`/mldjourneyapp/img/recList?current=${data.current}&size=${data.size}`);
}
// 12-二维码code
export function getQrCodeHttp(data) {
  return request.post(`/mldjourneyapp/recharge/wxBuy?id=${data.id}`);
}
// 13-支付状态接口
export function getPayStatusHttp(data) {
  return request.post(`/mldjourneyapp/recharge/findOrder?orderNo=${data.orderNo}`);
}
// 14-修改用户信息
export function changeUserInfoHttp(data) {
  return request.post('/mldjourneyapp/user/config', data);
}
// 15-查询任务详情
export function getDetailsListHttp(data) {
  return request.post(`/mldjourneyapp/img/details?ids=${data}`);
}
